package com.hc.music.controller;

import com.hc.music.common.R;
import com.hc.music.entity.UserUp;
import com.hc.music.service.UserUpService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("userUp")
public class UserUpController {
    @Autowired
    private UserUpService userUpService;
    @RequestMapping("insertOrDeleteUp")
    public R insertOrDeleteUp(@RequestBody UserUp userUp){
        return userUpService.insertOrDeleteUp(userUp);
    }
}
